package com.fly.cloud.consumer.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName MainController
 * @Description TODO
 * @Author Fly
 * @Version
 * @Date 2020/4/8 21:16
 */
@RequestMapping
@RestController
public class MainController {

    @Value("${spring.application.name}")
    private String applicationName;

    @GetMapping("appName")
    public String getAppName(){
        return applicationName;
    }
}
